package com.xjoyt.pay.gateway.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.gateway.interfaces.CallbackLogContract;
import com.xjoyt.pay.gateway.params.CallbackLogParam;
import com.xjoyt.pay.gateway.po.CallbackLog;
import com.xjoyt.pay.gateway.services.CallbackLogService;

@RestController
@RequestMapping("callbackLog")
public class CallbackLogController extends GatewayAbstractController
        implements CallbackLogContract {

    @Autowired
    private CallbackLogService service;

    @Override
    public PageResult<CallbackLog> loadPage(
            @RequestBody PageParam<CallbackLogParam> param) {
        return service.loadPage(param);
    }

}
